﻿@*Send to Friend Modal Popup Section Start*@
<div id="divSendToFriendDialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="divPhotoEditModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
        <h4 id="mySFLabel">Send Job to Friend</h4>
    </div>
    <div class="modal-body jb-inline-label">            
        <div id="divSFMesssage">        
            @using (Html.BeginForm("SendToFriend", "Ajax", FormMethod.Post, new { id="frmSendToFriend"}))
            {
                <div id="divServerMessage"></div>
                String _Pattern = @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
                <div>
                    <input type="text" name="YourEmail" id="YourEmail" value="@UserInfo.GetEmail()" placeholder="Your Email" data-val="true" maxlength="50"
                        data-val-required="Please Enter your Email" data-val-length-max="50" data-val-length="The Email can be maximum 50 characters long."
                        data-val-regex-pattern="@(_Pattern)" 
                        data-val-regex="Please Enter a valid Email address"/>
                    <span data-valmsg-replace="true" data-valmsg-for="YourEmail" class="field-validation-valid"></span>
                </div>
                <div>
                    <input type="text" name="FriendEmail" id="FriendEmail" value="" placeholder="Friend's Email"  data-val="true" maxlength="50"
                        data-val-required="Please Enter your Friend's Email" data-val-length-max="50" data-val-length="The Email can be maximum 50 characters long."
                        data-val-regex-pattern="@(_Pattern)" 
                        data-val-regex="Please Enter a valid Email address"/>
                    <span data-valmsg-replace="true" data-valmsg-for="FriendEmail" class="field-validation-valid"></span>
                </div>
            }
        </div>
    </div>
    <div class="modal-footer">               
        <button type="button" class="btn btn-primary" onclick="SendToFriend();"><i class="icon-thumbs-up icon-white"></i> Send</button>
        <button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-off"></i> Close</button>
    </div>
</div>
@*Send to Friend Modal Popup Section Ends*@